﻿namespace Core.Constants;

public static class BoilerplateConstants
{
    /// <summary>
    /// 模块前缀
    /// </summary>
    public const string ModulePrefix = "BP.Plugin.";
    /// <summary>
    /// Nuget包文件夹名
    /// </summary>
    public const string PackagesFolderName = "packages";
    /// <summary>
    /// Nuget包文件后缀
    /// </summary>
    public const string NugetPackageSuffix = ".nupkg";
    /// <summary>
    /// 忽略的Nuget文件
    /// </summary>
    public const string IgnoreNugetFileSuffixs = "^].xml|^.psmdcp|^.nuspec|^.rels";
    /// <summary>
    /// 宿主重启管理程序
    /// </summary>
    public const string HostRestartManager = "HostRestartManager.exe";
    /// <summary>
    /// 缓存类型
    /// </summary>
    public const string CacheTypeValue = "RedisCache";
    /// <summary>
    /// 主机配置KEY
    /// </summary>
    public const string HostsKey = "Hosts";
    /// <summary>
    /// 程序集后缀
    /// </summary>
    public const string AssemblySuffix = "*.dll";
    /// <summary>
    /// 默认连接配置KEY
    /// </summary>
    public const string DefaultConnectionKey = "DefaultConnection";
    /// <summary>
    /// 默认数据库类型配置KEY
    /// </summary>
    public const string DatabaseTypeKey = "DatabaseType";
    /// <summary>
    /// 模块路径
    /// </summary>
    public const string ModulePathsKey = "ModulePaths";
    /// <summary>
    /// 上传模块路径
    /// </summary>
    public const string UploadPathsKey = "UploadPaths";
    /// <summary>
    /// 应用
    /// </summary>
    public const string ApplicationKey = "Application";
    /// <summary>
    /// 域
    /// </summary>
    public const string DomainKey = "Domain";
    /// <summary>
    /// 框架核心
    /// </summary>
    public const string FrameworkCoreKey = "FrameworkCore";
    /// <summary>
    /// 基础设施
    /// </summary>
    public const string InfrastructureKey = "Infrastructure";
    /// <summary>
    ///  包版本号匹配规则
    /// </summary>
    public const string VersionRegex = @"\d+\.\d+\.\d+";
}
